export const getTableData = async () => {
  const response = await fetch("http://example.com/movies.json", {
    method: 'GET',
    mode: 'cors',
  });
  const data = await response.json();
  console.log(data);
  return data;
}